//
//  TYMacroConfig.h
//  TYToolKit
//
//  Created by dev_tianyu on 16/8/23.
//  Copyright © 2016年 dev_tianyu. All rights reserved.
//
//  全局宏定义

#ifndef TYMacroConfig_h
#define TYMacroConfig_h

#pragma mark - 字体相关
/** 字体大小 */
#define FONT_SIZE(size) [UIFont systemFontOfSize:size]
/** 粗体字体大小 */
#define BOLD_FONT_SIZE(size) [UIFont boldSystemFontOfSize:size]

#pragma mark - 尺寸
/** 屏幕的尺寸 */
#define MAIN_SCREEN_SIZE [UIScreen mainScreen].bounds.size
/** 屏幕的宽度 */
#define MAIN_SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
/** 屏幕的高度 */
#define MAIN_SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#pragma mark - 颜色
/** RGB颜色值 */
#define RGB_COLOR(R,G,B) [UIColor colorWithRed:(R)/255.0 green:(G)/255.0 blue:(B)/255.0 alpha:1]
/** RGBA颜色值 */
#define RGBA_COLOR(R,G,B,A) [UIColor colorWithRed:(R)/255.0 green:(G)/255.0 blue:(B)/255.0 alpha:(A)]
/** 清除颜色 */
#define CLEAR_COLOR [UIColor clearColor]

#pragma mark - 路径
/** document目录下的文件路径 */
#define FILEPATH_IN_DOCUMENT(fileName) [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0] stringByAppendingPathComponent:fileName]


#endif /* TYMacroConfig_h */
